import org.example.entity.BookEntity;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/*
  @version: java version 23
 * @Author: 韩学新
 * @description:
 * @date: 2025-04-05 下午3:23
 */
public static void main() {

    //new UserEntity().test();
    ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("spring.xml");

//    UserEntity userEntity = classPathXmlApplicationContext.getBean("userEntity", UserEntity.class);
//    System.out.println(userEntity);

    BookEntity bookEntity = classPathXmlApplicationContext.getBean("bookEntity", BookEntity.class);
    System.out.println(bookEntity);


}

